import user from "@/common/user.js"
import http from "@/common/http.js"

// POST  我的商户和商户交易明细
function statMemberOrderDetail(page,startDate,endDate, call) {
	user.getSign(secret => {
		let date = new Date();
		let data = {
			"current": page,
			"size": 20,
			"secret": secret,
			"startDate": startDate, // 格式 2022-04-06
			"endDate": endDate, // 格式 2022-04-06
			"userId": user.getUserId()
		}

		http.request({
			url: '/api/v1/statMemberOrderDetail',
			data: data,
			success: ret => {
				call(ret);
			},
			fail: ret => {
				console.log(ret);
				uni.showToast({
					icon: 'error',
					title: '获取商户信息失败'
				})
			}
		})

	})


}
export default {
	statMemberOrderDetail: statMemberOrderDetail,
}
